package com.knife.oauth.security.customer.handler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.authentication.AuthenticationFailureHandler;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.Serializable;

/**
 * 登录失败处理器
 *
 * @author： 76875
 * @date： 2022/4/13 星期三 10:35
 * @description：
 * @modifiedBy：
 * @version: 1.0
 */
@Slf4j
public class KnifeAuthenticationFailureHandler implements AuthenticationFailureHandler, Serializable {
    @Override
    public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException {
        log.info("认证失败");
    }
}
